package com.sunda.spmsuser.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * spms用户角色关系表
 * </p>
 *
 * @author Wayne
 * @since 2021-01-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("SPMS_USER_ROLE")
@ApiModel(value="SpmsUserRole对象", description="spms用户角色关系表")
public class SpmsUserRole implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "唯一UUID")
    @TableId("UUID")
    private String uuid;

    @ApiModelProperty(value = "用户工号")
    @TableField("WORK_CODE")
    private String userId;

    @ApiModelProperty(value = "角色编号")
    @TableField("ROLE_ID")
    private String roleId;

    @ApiModelProperty(value = "角色UUID")
    @TableField("ROLE_UUID")
    private String roleUuid;


    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getRoleUuid() {
        return roleUuid;
    }

    public void setRoleUuid(String roleUuid) {
        this.roleUuid = roleUuid;
    }

    @Override
    public String toString() {
        return "SpmsUserRole{" +
                "uuid='" + uuid + '\'' +
                ", userId='" + userId + '\'' +
                ", roleId=" + roleId +
                ", roleUuid='" + roleUuid + '\'' +
                '}';
    }
}
